home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16494 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: griffin.nott.ac.uk!usenet
  2. From: cag@cs.nott.ac.uk (Cleveland A Gibbon)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Parsing C++ headers?
  5. Date: 10 Apr 1996 16:16:49 GMT
  6. Organization: Cripps Computing Centre, The University of Nottingham
  7. Message-ID: <4kgmth$n8f@griffin.ccc.nottingham.ac.uk>
  8. References: <96-04-033@comp.compilers>
  9. NNTP-Posting-Host: robin.cs.nott.ac.uk
  10. X-Newsreader: knews 0.9.5
  11. To: compilers@iecc.com
  12.  
  13. In article <96-04-033@comp.compilers>,
  14.     John Mitchell <104316.1514@CompuServe.COM> writes:
  15. >Hi,
  16. >
  17. >I want to parse C++ header files, and extract information about the
  18. >contained classes and their interface. A yacc-able grammar for this
  19. >type of problem ( or superset of it, as for compilation) would be a
  20. >great help. I'm aware of a grammar for C++ 2.0 out there - is there a
  21. >later version supporting templates?
  22. >
  23. >Alternatively, any suggestions on shareware/commercial parsers
  24. >(Windows/UNIX) that would be up to the job would be appreciated.
  25. >
  26. >thanks a lot,
  27. >
  28. >John Mitchell
  29. >--
  30. >Send compilers articles to compilers@iecc.com,
  31. >meta-mail to compilers-request@iecc.com.
  32. >
  33.  
  34. John,
  35.  
  36. Welcome to  your worst nightmare!  I  have not been  able  to track  down a
  37. yacc-able grammar for 2 years. The one you mentioned about  is very old and
  38. would need a  substantial amount of work to  include templates. There  is a
  39. neat C++ grammar that  is written in C/C++,  hence portable to any platform
  40. with a C/C++ compiler. 
  41.  
  42. An   in  depth discussion   currently  underway   about  its  update    and
  43. bugfixes.   For    your,   purpose it       should    suffice.  Check   out
  44. 'comp.compiler.tools.pccts' and join the fun.
  45.  
  46. Cleve.
  47.  
  48.  
  49.